<!DOCTYPE HTML>
<html>
  <head>
    <script>
      var pluginElement = document.getElementById('browntooth-npapi-plugin-id');
      var browntooth = pluginElement.BrownToothNPAPI();

      chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {
        console.log("in func: " + request);
        if (request == "GetPasswordsForPage") {
          sendResponse({"login_form": {"login": "Nadir", "passwd": "JerryCan"}});
        }
        if (request == "RegisterNewPasswords") {
          console.log("need to save this passwords");
        }
      });
    </script>
    <embed type='application/x-browntooth-npapi' id='browntooth-npapi-plugin-id' hidden='true'/>
  </head>
  <body></body>
</html>
